import { Notification } from 'element-ui';
export default{
	/**
	 * 普通提示
	 * @author 邬天美 2017-10-11
	 * @param  {[type]} msg   [description]
	 * @param  {[type]} title [description]
	 * @return {[type]}       [description]
	 */
	info:function(msg,title){
		Notification.info({
			title: title||'提示',
	        message: msg,
		});
	}
	/**
	 * 成功提示
	 * @author 邬天美 2017-10-11
	 * @param  {[type]} msg   [description]
	 * @param  {[type]} title [description]
	 * @return {[type]}       [description]
	 */
	,success:function(msg,title){
		Notification.success({
			title: title||'提示',
	        message: msg,
		});
	}
	/**
	 * 警告
	 * @author 邬天美 2017-10-11
	 * @param  {[type]} msg   [description]
	 * @param  {[type]} title [description]
	 * @return {[type]}       [description]
	 */
	,warning:function(msg,title){
		Notification.warning({
			title: title||'提示',
	        message: msg,
		});
	}
	/**
	 * 错误提示
	 * @author 邬天美 2017-10-11
	 * @param  {[type]} msg   [description]
	 * @param  {[type]} title [description]
	 * @return {[type]}       [description]
	 */
	,error:function(msg,title){
		Notification.error({
			title: title||'提示',
	        message: msg,
		});
	}
}